package material.encapsulation_algorithm;

/**
 * 煮茶类
 */
public class Tea {
    void prepareRecipe() {
        boilWater();
        steepTeaBag();
        addLemon();
        pourInCup();
    }

    public void boilWater() {
        System.out.println("水沸腾了");
    }

    public void steepTeaBag() {
        System.out.println("将茶叶加入沸水中");
    }

    public void addLemon() {
        System.out.println("添加柠檬");
    }

    public void pourInCup() {
        System.out.println("将茶水倒入杯子中");
    }

}
